<?php
namespace dreamphp\core;

class Controller
{
	public $view = null;
	
	public function __construct($module, $controller, $action)
	{
		$this->view = new View($module, $controller, $action);
	}
	
	public function assign($viewData)
	{
		$this->view->assign($viewData);
	}
	
	public function fetch($view = null)
	{
		$this->view->fetch($view);
	}
}